import request from '@/utils/request'

export function getRejecteds(query) {
  return request({
    url: '/market/rejected/getList',
    method: 'post',
    data: query
  })
}

export function getRejected(id) {
  return request({
    url: '/market/rejected/getDetail',
    method: 'post',
    data: id
  })
}

export function saveSubject(formdata) {
  return request({
    url: '/market/rejected/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusByrejectedID(id) {
  return request({
    url: '/market/rejected/change-status',
    method: 'post',
    data: id
  })
}

export function removeSubjectByID(id) {
  return request({
    url: '/borrow/rejected/delete',
    method: 'post',
    data: id
  })
}

export function fetchSubjectAvailable(id) {
  return request({
    url: '/market/rejected/getAvailable',
    method: 'post',
    data: id
  })
}

